#include "shit.h"

Shit::Shit(QPoint p)
{
    this->topLeft=p;
}

const QImage &Shit::getImage()
{
    static const QImage image=QImage(imagesDirectory+"shit.png","PNG").scaled(productSize.width(),productSize.height());
    return image;
}

int Shit::getType()
{
    return SHIT;
}

QRegion Shit::getRegion()
{
    static const QBitmap bm=QBitmap::fromImage(QImage(imagesDirectory+"shit.bmp","BMP").scaled(productSize.width(),productSize.height()),Qt::MonoOnly);
    static const QRegion region(bm);
    return region.translated(topLeft);
}
